<?php
/**
 * @link http://www.yiizh.com
 * @copyright Copyright (c) 2014 YiiZh.COM
 */
use yii\bootstrap\Nav;
use yii\helpers\Html;
use yii\web\View;

/**
 * @var $this View
 */
$this->beginContent('@app/views/layouts/base.php');
$this->registerJs("$('body').scrollspy({ target: '.extension-nav' })");
$this->registerJsFile("http://cdn.bootcss.com/github-repo-widget/e23d85ab8f/jquery.githubRepoWidget.min.js",[
    'depends'=>['yii\web\JqueryAsset']
]);
?>
<main class="main">
<?php if ($this->context->navTitle): ?>
    <header class="nav page-header">
        <div class="container">
            <h1 class="header"><?= $this->title ?></h1>
            <?php if (isset($this->context->navItems)): ?>
                <?= Nav::widget([
                    'activateItems'=>false,
                    'items' => $this->context->navItems,
                    'options' => [
                        'class' => 'nav-pills extension-nav'
                    ]
                ]) ?>
            <?php endif; ?>
        </div>
    </header>
    <div class="container extension-content">
        <div class="row">
            <div class="col-lg-9">
                <?= $content ?>
            </div>
            <div class="col-lg-3">
                <?=Nav::widget([
                    'options'=>['class'=>'nav-pills nav-stacked'],
                    'items'=>Yii::$app->params['extensions']
                ])?>
            </div>
        </div>
    </div>
<?php endif; ?>
</main>
<?php $this->endContent(); ?>